<?php
	if(isset($_GET['k']))
	{
		$k = $_GET['k'];
		$id = $_GET['id'];
		
		$baiviet = new noidungtinbs();
		$baiviet->MaBaiViet = $id;
		$baiviet->KiemDuyet = $k;
		$kq = $baiviet->CheckArticle();
		
		if($kq)
			header("Location: baiviet");
		else
			ThongBaoLoi("Lỗi truy vấn!");
	}
	else
	{
		header("Location: baiviet");
	}
?>